/*  1:   */ package org.intellij.plugins.relaxNG.xml.dom.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.psi.PsiElement;
import com.intellij.util.xml.GenericAttributeValue;
import org.intellij.plugins.relaxNG.model.Pattern;
import org.intellij.plugins.relaxNG.xml.dom.RngDefine;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */ 
/*  9:   */ public abstract class RngDefineImpl
/* 10:   */   extends RngDomElementBase
/* 11:   */   implements RngDefine
/* 12:   */ {
/* 13:   */   public void setName(String paramString)
/* 14:   */   {
/* 15:31 */     GenericAttributeValue localGenericAttributeValue = getNameAttr();
/* 16:32 */     if (localGenericAttributeValue.getStringValue() != null) {
/* 17:33 */       localGenericAttributeValue.setStringValue(paramString);
/* 18:   */     }
/* 19:   */   }
/* 20:   */   
/* 21:   */   public String getName()
/* 22:   */   {
/* 23:38 */     return (String)getNameAttr().getValue();
/* 24:   */   }
/* 25:   */   
/* 26:   */   public PsiElement getNameElement()
/* 27:   */   {
/* 28:42 */     return getNameAttr().getXmlAttributeValue();
/* 29:   */   }
/* 30:   */   
/* 31:   */   public Pattern getPattern()
/* 32:   */   {
/* 33:46 */     return getPatternFrom(this);
/* 34:   */   }
/* 35:   */   
/* 36:   */   public void accept(CommonElement.Visitor paramVisitor)
/* 37:   */   {
/* 38:50 */     paramVisitor.visitDefine(this);
/* 39:   */   }
/* 40:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.plugins.relaxNG.xml.dom.impl.RngDefineImpl

 * JD-Core Version:    0.7.0.1

 */